package com.yoosora.common.mode.request;

import java.util.List;

/**
 * @author yoosora
 */
public class MultiIDOperatorRequest<T> extends BasicOperatorRequest {
	private static final long serialVersionUID = -1009516449316723141L;
	private List<T> ids;

	public MultiIDOperatorRequest() {
	}

	public MultiIDOperatorRequest(List<T> ids) {
		this.ids = ids;
	}

	public List<T> getIds() {
		return this.ids;
	}

	public void setIds(List<T> ids) {
		this.ids = ids;
	}

	public String toString() {
		return "MultiIDOperatorRequest(ids=" + this.getIds() + ")";
	}

	public boolean equals(Object o) {
		if (o == this) {
			return true;
		} else if (!(o instanceof MultiIDOperatorRequest)) {
			return false;
		} else {
			MultiIDOperatorRequest<?> other = (MultiIDOperatorRequest)o;
			if (!other.canEqual(this)) {
				return false;
			} else {
				Object this$ids = this.getIds();
				Object other$ids = other.getIds();
				if (this$ids == null) {
					if (other$ids != null) {
						return false;
					}
				} else if (!this$ids.equals(other$ids)) {
					return false;
				}

				return true;
			}
		}
	}

	protected boolean canEqual(Object other) {
		return other instanceof MultiIDOperatorRequest;
	}

	public int hashCode() {
		int result = 1;
		Object $ids = this.getIds();
		result = result * 59 + ($ids == null ? 43 : $ids.hashCode());
		return result;
	}
}